package com.zb.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zb.entity.TbTaskModel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassName TbTaskMapper
 * @Description mapper接口
 * @Author zj
 * @Date 2022/11/25 09:03
 **/
@Mapper
public interface TbTaskMapper extends BaseMapper<TbTaskModel> {
    public List<TbTaskModel> beforeOneMinuteOrder();

    public Integer lock(@Param("id") Long id, @Param("version") Integer version);
}
